package com.petShop.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.petShop.mappers.CommentMapper;
import com.petShop.models.Comment;

@Repository
public class CommentDao{
	@Autowired
	private CommentMapper CommentMapper;
	
	public void insertComment(Comment Comment) {
		CommentMapper.insertComment(Comment);
	}

	public Comment selectPetComment(int cId) {
		return CommentMapper.selectComment(cId);
	}

	public List<Comment> selectComments(int goodId) {
		return CommentMapper.selectComments(goodId);
	}

}
